package com.mydemo.charging.order.mqtt;

import com.mydemo.charging.order.repository.FailBillRepository;
import com.mydemo.charging.order.repository.SuccessBillRepository;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * ApplicationContext 容器进程上下文对象 能拿到所有容器bean
 * getBean(class) getBean(beanId)
 */
@Component
@Data
public class MqttContext {
//    @Autowired
//    //private OrderService orderService;
//    private OrderConsumerService orderConsumerService;
    //意思意思 所有bean都可以钩过来
    @Autowired
    private SuccessBillRepository successBillRepository;
    @Autowired
    private FailBillRepository failBillRepository;
    @Autowired
    private RedisTemplate redisTemplate;
}
